package cn.buaa.anniversary.model;

import lombok.Data;

import java.util.HashSet;
import java.util.Set;


public class Sentence {

    private int id;

    private String url;

    private Set<String> conditions = new HashSet<>();

    public boolean isContain(String word){
        return conditions.contains(word);
    }

    public Sentence(int id, String url,String condition1,String condition2,String condition3){
        conditions.add(condition1);
        conditions.add(condition2);
        conditions.add(condition3);
        this.url = url;
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Set<String> getConditions() {
        return conditions;
    }

    public void setConditions(Set<String> conditions) {
        this.conditions = conditions;
    }
}
